import request from '@/utils/request'

// 查询造型记录列表
export function listShape(query) {
  return request({
    url: '/bus/shape/list',
    method: 'get',
    params: query
  })
}

// 查询造型记录详细
export function getShape(id) {
  return request({
    url: '/bus/shape/' + id,
    method: 'get'
  })
}

// 新增造型记录
export function addShape(data) {
  return request({
    url: '/bus/shape',
    method: 'post',
    data: data
  })
}

// 修改造型记录
export function updateShape(data) {
  return request({
    url: '/bus/shape',
    method: 'put',
    data: data
  })
}

// 删除造型记录
export function delShape(id) {
  return request({
    url: '/bus/shape/' + id,
    method: 'delete'
  })
}
